//
//  DYYoukeZixunSubCell.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/4.
//  Copyright © 2021 叁拾叁. All rights reserved.
//

import UIKit

class DYYoukeZixunSubCell: SYBaseCell {
    
    let wenLb: UILabel = {
        let v:UILabel = UILabel()
        v.textColor = UIColor(hex: 0x333333)
        v.font = 15.autoFontSize()
        return v
    }()
    
    let pic: UIImageView = {
        let v: UIImageView = UIImageView()
        v.image = UIImage(named: "wen")
        return v
    }()
    

    public func configureView(_ model: DYAdvisoryListModel) {
        wenLb.text = model.issue
    }
    
    override func initViews() {
        
        addSubview(wenLb)
        addSubview(pic)
        wenLb.snp.makeConstraints { (make) in
            make.centerY.equalTo(pic)
            make.left.equalTo(pic.snp.right).offset(autoWidth(7.5))
            make.right.equalToSuperview().offset(autoWidth(-15.0))
            make.height.equalTo(14.0.autoWidth())
        }
        pic.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(autoWidth(15.0))
            make.bottom.equalToSuperview()
            make.left.equalToSuperview().offset(autoWidth(14.5))
            make.width.equalTo(18.0.autoWidth())
            make.height.equalTo(19.0.autoWidth())
        }
    }
}

